/**
 * Created by JetBrains PhpStorm.
 * User: maplefalling
 * Date: 2/9/12
 * Time: 10:47 PM
 * To change this template use File | Settings | File Templates.
 */

Ext.regModel('AAWE.App.Profile.Model.Child', {
    fields:[ 'id', 'isdefault', 'lastname', 'firstname', 'birthday', 'gender', {name:'imgdata', type:'string', convert:function (v, r) {
        if (v == '') {
            return '../resources/img/profile_default@2x.png';
        }
        return v;
    }}],

    proxy:{
        type:'localstorage',
        id:'AAWE.App.Profile.Model.Child'
    }
});